package org.joa.actor;

import java.io.Serializable;
import java.util.UUID;

public class ActorName implements Serializable {
	private static final long serialVersionUID = 1L;
	private UUID id;

	public ActorName(UUID id) {
		this.id = id;
	}

	public boolean equals(Object otherObj) {
		if (!(otherObj instanceof ActorName)) {
			return false;
		}

		ActorName otherActorName = (ActorName) otherObj;
		return id.equals(otherActorName.id);
	}

	public int hashCode() {
		return id.hashCode();
	}

	public String toString() {
		return id.toString();
	}
}
